#!/bin/bash

os::delay() {
  local fn=$@
  if [ "$fn" = "" ]; then
    log::error "[core][os::delay] fn is required"
    exit 1
  fi

  sleep 1
  eval $fn
}

export -f os::delay
